package me.firstapp.module.weixin.system;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import me.firstapp.module.base.BaseEntity;

@Entity
@Table(name = "SYSTEM_BANNER")
public class Banner extends BaseEntity {

	private static final long serialVersionUID = -2547155497643384487L;
	
	public static final int STATUS_OFF = 0;// 停用状态
	public static final int STATUS_ON = 1;// 启用状态

	@Column(name = "TAG", length = 30, nullable = false)
	private String tag;

	@Column(name = "NAME", length = 30, nullable = false, unique = true)
	private String name;

	@Column(name = "IMAGE_URL", length = 500, nullable = false)
	private String imageUrl;

	@Column(name = "URL", length = 500)
	private String url;

	// 排序
	@Column(name = "SORT", nullable = false, columnDefinition = "TINYINT")
	private Integer sort;

	// 状态，0：停用，1：启用
	@Column(name = "STATUS", columnDefinition = "TINYINT", nullable = false)
	private Integer status;

	@Column(name = "REMARK", length = 300)
	private String remark;

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}
